<?php
// Allow use dialog upload 
function my_admin_scripts() {
	wp_enqueue_script('media-upload');
	wp_enqueue_script('thickbox');
	//wp_register_script('my-upload', TEMPLATE_URL .'/libs/js_use_dialog_upload.js', array('jquery','media-upload','thickbox'));
	//wp_enqueue_script('my-upload');
}
function my_admin_styles() {
	wp_enqueue_style('thickbox');
}

if ( $_GET['page'] == 'settings' || $_GET['page'] == 'partner' || $_GET['page'] == 'image' || $_GET['page'] == 'links' || $_GET['taxonomy'] == 'category' ) {
	add_action('admin_print_scripts', 'my_admin_scripts');
	add_action('admin_print_styles', 'my_admin_styles');
}

/* Ex: <input type="text" name="source" id="my_source" onclick="uploadGallery('my_source')" /> */
?>